package com.wxh.bomb.netty.design.future;

import com.wxh.bomb.netty.design.future.core.Data;
import com.wxh.bomb.netty.design.future.core.FutureClient;

public class Main {

    public static void main(String[] args) throws InterruptedException {

        FutureClient fc = new FutureClient();
        Data data = fc.request("请求参数");
        System.out.println("请求发送成功!");
        System.out.println("做其他的事情...");

        String result = data.getRequest();
        System.out.println(result);

    }
}
